package com.eedi.org.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 机构组件异常类型
 * @author zybourn
 */
@Getter
@AllArgsConstructor
public enum OrgErrorCodeType implements BaseEnum<Integer,String> {
    /**
     * WEB
     */
    BASE(1000, "WEB"),
    /**
     * DEPT
     */
    DEPT(2000, "DEPT"),
    /**
     * OAUTH2
     */
    OAUTH2(3000, "OAUTH2"),
    /**
     * PERMISSION
     */
    PERMISSION(4000, "PERMISSION"),
    /**
     * USER
     */
    USER(5000, "USER"),
    /**
     * INFO
     */
    INFO(6000, "INFO"),

    /**
     * HOSPITAL
     */
    HOSPITAL(7000, "HOSPITAL"),

    /**
     * HEALTHINFO
     */
    HEALTHINFO(8000, "HEALTHINFO"),
    /**
     * DOCTOR
     */
    DOCTOR(9000, "DOCTOR"),

    /**
     * JOB
     */
    JOB(10000, "JOB"),
    /**
     * NOTICE
     */
    NOTICE(11000, "NOTICE"),
    /**
     * SOCIAL
     */
    SOCIAL(12000,"SOCIAL"),
    ;
    /**
     * 异常编码
     */
    private Integer code;


    /**
     * 描述
     */
    private String desc;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public String title() {
        return "基础架构组件异常类型";
    }
}
